<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <link rel="stylesheet" href="../css/mui.css">

  <style>
    .mui-content>.mui-table-view {
      margin-top: 15px;
    }
    
    .mui-content>.mui-table-view:first-child {
      margin-top: 0 !important;
    }
    
    .pc-table-view {
      color: #8f8f94;
      font-size: 14px;
    }
    
    #head-img1 {
      vertical-align: middle;
      width: 60px;
      border-radius: 50%;
      margin-left: 20px;
    }
    
    .pc-dis {
      display: flex !important;
    }
    
    .pc-mar-left {
      margin-left: 20px;
    }
    
    .pc-color-black {
      font-size: 14px;
      color: #444;
    }
  </style>

</head>

<body>
  <header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">钱包·支付</h1>
  </header>

  <div class="mui-content">
    <ul class="mui-table-view pc-table-view">
      <li class="mui-table-view-cell">
        <a class="pc-dis mui-navigate-right">收入<span class="mui-pull-right pc-mar-left wallet">接单才有收入噢</span></a>
      </li>
      <li class="mui-table-view-cell">
        <a class="pc-dis mui-navigate-right">积分<span class="mui-pull-right pc-mar-left wallet">发帮助有积分噢</span></a>
      </li>
    </ul>

  </div>

</body>

<script src="../js/mui.js "></script>
<script src="../js/app.js"></script>
<script src="../js/http.js"></script>
<script>
  var wallet = JSON.parse(localStorage.$wallet ? localStorage.$wallet : '{}'),
    walletArr = Array.from(document.querySelectorAll('.wallet'));

  walletArr.map(function(val, ind) {
    if (ind === 0) {
      if (!wallet.income) return;
      walletArr[ind].innerText = wallet.income;
      return walletArr[ind].classList.add('pc-color-black');
    }
    if (ind === 1) {
      if (!wallet.score) return;
      walletArr[ind].innerText = wallet.score;
      return walletArr[ind].classList.add('pc-color-black');
    }
  });
</script>

</html>